package com.cr.admin.business.topic.dao.repository;

import com.cr.admin.business.topic.pojo.entity.Topic;
import com.cr.admin.business.topic.pojo.param.TopicAddParam;
import com.cr.admin.business.topic.pojo.param.TopicUpdateParam;
import com.cr.admin.business.topic.pojo.query.TopicQuery;

import java.util.List;

public interface TopicRepository {

    List<Topic> selectList(TopicQuery topicQuery);

    void insert(TopicAddParam topicAddParam);

    void updateById(TopicUpdateParam topicUpdateParam);


    Topic selectById(Long id);

    void deleteByIds(List<Long> ids);
}
